package models

import (
	"github.com/goravel/framework/database/orm"
)

type Department struct {
	orm.Model
	SiteID uint   `gorm:"column:site_id;type:int(11);not null;default:0;comment:'站点ID'" form:"site_id" json:"site_id"`
	No     string `gorm:"column:no;type:varchar(20);not null;default:'';comment:'部门编号'" form:"no" json:"no"`
	Name   string `gorm:"column:name;type:varchar(20);not null;default:'';comment:'部门名称'" form:"name" json:"name"`
	Status int    `gorm:"column:status;type:int(10);default:1;comment:'状态0:禁用,1:启用'" form:"status" json:"status"`
	Remark string `gorm:"column:remark;type:varchar(100);default:null;comment:'备注'" form:"remark" json:"remark"`
	Pid    int    `gorm:"column:pid;type:int(11);default:null;comment:'上级部门编号'" form:"pid" json:"pid"`
}
